package com.haoshuang.zhouzhoubang.ui.dialog

import android.content.Context


import android.widget.TextView
import com.haoshuang.zhouzhoubang.R


import com.lxj.xpopup.core.BottomPopupView



class TisJbDialog(context: Context, str:String, private val onSubmit: (str:Int) -> Unit) : BottomPopupView(context){
    override fun getImplLayoutId(): Int = R.layout.dialog_gb

    override fun initPopupContent() {
        super.initPopupContent()

        var tvTs2=findViewById<TextView>(R.id.tvTs2)

        var tvTy=findViewById<TextView>(R.id.tvTy)
        var tvBty=findViewById<TextView>(R.id.tvBty)
        tvTy.setOnClickListener {
            dismiss()
            onSubmit(0)
        }
        tvBty.setOnClickListener {
            dismiss()
        }

    }


}